package com.shadow.bus.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author zhangyu
 * @date 2018/7/6
 */

public class PostRepairInfo implements Serializable{
    /**
     * Id : 1
     * ListTrouble : [{"Id":1,"ListContent":[{"Operation":{"Id":1},"Component":null,"Accessory":{"Id":5},"UseCount":2,"WorkPerson":{"Id":1,"Code":"1018489"},"WorkTime":"2017-03-22 11:14"},{"Operation":{"Id":2},"Component":null,"Accessory":{"Id":6},"UseCount":2,"WorkPerson":{"Id":1,"Code":"1018489"},"WorkTime":"2017-03-22 11:14"}]},{"Id":2,"ListContent":[{"Operation":{"Id":1},"Component":null,"Accessory":{"Id":8},"UseCount":2,"WorkPerson":{"Id":1,"Code":"1018489"},"WorkTime":"2017-03-22 11:14"},{"Id":5,"Operation":{"Id":2},"Component":null,"Accessory":{"Id":9},"UseCount":2,"WorkPerson":{"Id":1,"Code":"1018489"},"WorkTime":"2017-03-22 11:14"}]}]
     * ListConfirm : [{"ConfirmType":1,"ConfirmPerson":{"Id":1,"Code":"1018489"},"ConfirmTime":"2017-03-22 11:41"}]
     */

    private long Id;
    private List<ListTroubleBean> ListTrouble;
    private List<ListConfirmBean> ListConfirm;

    public long getId() {
        return Id;
    }

    public void setId(long Id) {
        this.Id = Id;
    }

    public List<ListTroubleBean> getListTrouble() {
        return ListTrouble;
    }

    public void setListTrouble(List<ListTroubleBean> ListTrouble) {
        this.ListTrouble = ListTrouble;
    }

    public List<ListConfirmBean> getListConfirm() {
        return ListConfirm;
    }

    public void setListConfirm(List<ListConfirmBean> ListConfirm) {
        this.ListConfirm = ListConfirm;
    }

    public static class ListTroubleBean implements Serializable{
        /**
         * Id : 1
         * ListContent : [{"Operation":{"Id":1},"Component":null,"Accessory":{"Id":5},"UseCount":2,"WorkPerson":{"Id":1,"Code":"1018489"},"WorkTime":"2017-03-22 11:14"},{"Operation":{"Id":2},"Component":null,"Accessory":{"Id":6},"UseCount":2,"WorkPerson":{"Id":1,"Code":"1018489"},"WorkTime":"2017-03-22 11:14"}]
         */

        private long Id;
        private String Name;
        private List<TroubleOperationEntity> ListContent;

        public String getName() {
            return Name;
        }

        public void setName(String name) {
            Name = name;
        }

        public long getId() {
            return Id;
        }

        public void setId(long Id) {
            this.Id = Id;
        }

        public List<TroubleOperationEntity> getListContent() {
            return ListContent;
        }

        public void setListContent(List<TroubleOperationEntity> ListContent) {
            this.ListContent = ListContent;
        }
    }

    public static class ListConfirmBean {
        /**
         * ConfirmType : 1
         * ConfirmPerson : {"Id":1,"Code":"1018489"}
         * ConfirmTime : 2017-03-22 11:41
         */

        private int ConfirmType;
        private ConfirmPersonBean ConfirmPerson;
        private String ConfirmTime;

        public int getConfirmType() {
            return ConfirmType;
        }

        public void setConfirmType(int ConfirmType) {
            this.ConfirmType = ConfirmType;
        }

        public ConfirmPersonBean getConfirmPerson() {
            return ConfirmPerson;
        }

        public void setConfirmPerson(ConfirmPersonBean ConfirmPerson) {
            this.ConfirmPerson = ConfirmPerson;
        }

        public String getConfirmTime() {
            return ConfirmTime;
        }

        public void setConfirmTime(String ConfirmTime) {
            this.ConfirmTime = ConfirmTime;
        }

        public static class ConfirmPersonBean {
            public ConfirmPersonBean() {
            }

            public ConfirmPersonBean(int id, String code) {
                Id = id;
                Code = code;
            }

            /**
             * Id : 1
             * Code : 1018489
             */

            private int Id;
            private String Code;

            public int getId() {
                return Id;
            }

            public void setId(int Id) {
                this.Id = Id;
            }

            public String getCode() {
                return Code;
            }

            public void setCode(String Code) {
                this.Code = Code;
            }
        }
    }
}
